home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / cc / sprite / RCS / specs.h,v < prev    next >
Encoding:
Text File  |  1991-09-18  |  20.4 KB  |  823 lines

  1. head     1.18;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    rab:1.18; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.18
  10. date     91.09.12.15.40.39;  author rab;  state Exp;
  11. branches ;
  12. next     1.17;
  13.  
  14. 1.17
  15. date     91.09.12.15.37.11;  author rab;  state Exp;
  16. branches ;
  17. next     1.16;
  18.  
  19. 1.16
  20. date     90.11.05.07.06.04;  author rab;  state Exp;
  21. branches ;
  22. next     1.15;
  23.  
  24. 1.15
  25. date     90.09.09.03.32.01;  author rab;  state Exp;
  26. branches ;
  27. next     1.14;
  28.  
  29. 1.14
  30. date     90.06.28.15.31.15;  author rab;  state Exp;
  31. branches ;
  32. next     1.13;
  33.  
  34. 1.13
  35. date     90.04.09.08.45.24;  author rab;  state Exp;
  36. branches ;
  37. next     1.12;
  38.  
  39. 1.12
  40. date     90.02.06.21.38.50;  author rab;  state Exp;
  41. branches ;
  42. next     1.11;
  43.  
  44. 1.11
  45. date     90.01.12.09.40.36;  author rab;  state Exp;
  46. branches ;
  47. next     1.10;
  48.  
  49. 1.10
  50. date     89.12.14.17.49.05;  author rab;  state Exp;
  51. branches ;
  52. next     1.9;
  53.  
  54. 1.9
  55. date     89.10.25.21.33.16;  author rab;  state Exp;
  56. branches ;
  57. next     1.8;
  58.  
  59. 1.8
  60. date     89.10.23.21.23.53;  author rab;  state Exp;
  61. branches ;
  62. next     1.7;
  63.  
  64. 1.7
  65. date     89.10.13.10.24.11;  author rab;  state Exp;
  66. branches ;
  67. next     1.6;
  68.  
  69. 1.6
  70. date     89.07.19.10.50.38;  author ouster;  state Exp;
  71. branches ;
  72. next     1.5;
  73.  
  74. 1.5
  75. date     89.06.15.14.56.05;  author rab;  state Exp;
  76. branches ;
  77. next     1.4;
  78.  
  79. 1.4
  80. date     89.05.09.23.17.14;  author rab;  state Exp;
  81. branches ;
  82. next     1.3;
  83.  
  84. 1.3
  85. date     89.05.09.21.30.11;  author rab;  state Exp;
  86. branches ;
  87. next     1.2;
  88.  
  89. 1.2
  90. date     89.03.12.21.02.38;  author rab;  state Exp;
  91. branches ;
  92. next     1.1;
  93.  
  94. 1.1
  95. date     89.02.24.15.56.48;  author rab;  state Exp;
  96. branches ;
  97. next     ;
  98.  
  99.  
  100. desc
  101. @@
  102.  
  103.  
  104. 1.18
  105. log
  106. @Recognize sun4c2 as alias for sun4.
  107. @
  108. text
  109. @/*
  110.  * specs.h --
  111.  *
  112.  *    This file is included by gcc.c, and defines the compilation
  113.  *    and linking specs for each of the target machines for which
  114.  *    gcc can currently generate code.
  115.  *
  116.  * Copyright 1988 Regents of the University of California
  117.  * Permission to use, copy, modify, and distribute this
  118.  * software and its documentation for any purpose and without
  119.  * fee is hereby granted, provided that the above copyright
  120.  * notice appear in all copies.  The University of California
  121.  * makes no representations about the suitability of this
  122.  * software for any purpose.  It is provided "as is" without
  123.  * express or implied warranty.
  124.  *
  125.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.17 91/09/12 15:37:11 rab Exp Locker: rab $ SPRITE (Berkeley)
  126.  */
  127.  
  128. #ifndef _SPECS
  129. #define _SPECS
  130.  
  131. /* This structure says how to run one compiler, and when to do so.  */
  132.  
  133. struct compiler
  134. {
  135.   char *suffix;            /* Use this compiler for input files
  136.                    whose names end in this suffix.  */
  137.   char *spec;            /* To use this compiler, pass this spec
  138.                    to do_spec.  */
  139. };
  140.  
  141. /*
  142.  * One of the following structures exists for each machine for
  143.  * which gcc can generate code.  It gives all the spec-related
  144.  * information for compiling for tha target.
  145.  */
  146.  
  147. typedef struct
  148. {
  149.     char *name;                /* Official name of this target
  150.                      * machine (many -m switches may
  151.                      * map to the same entry). */
  152.     struct compiler *base_specs;    /* List of specs to use when compiling
  153.                      * for this target machine.  Last
  154.                      * compiler must be all zeros to
  155.                      * indicate end of list. */
  156.     struct compiler *cplusplus_specs;   /* List of specs to use when invoked                               as a c++ compiler */
  157.     char *link_base_spec;        /* Basic spec to use to link for this
  158.                      * target. */
  159.     char *cpp_predefines;        /* Spec to substitute for %p. */
  160.     char *cpp_spec;            /* Spec to substitute for %C. */
  161.     char *cc1_spec;                     /* Spec to substitute for %1. */
  162.     char *cplus1_spec;                  /* Spec to substitute for %+  */
  163.     char *asm_spec;            /* Spec to substitute for %a. */
  164.     char *link_spec;            /* Spec to substitute for %l. */
  165.     char *lib_spec;            /* Spec to substitute for %L. */
  166.     char *startfile_spec;        /* Spec to substitute for %S. */
  167.     char *signed_char_spec;             /* Spec to substitute for %c. */
  168. } target_specs;
  169.  
  170. static char default_assembler_string[] = 
  171.      "%{!E:%{!S:%a %{R} %{j} %{J} %{h} %{d2}\
  172.     %i %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\n }}\
  173.       %{E:%C %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} -m%m %{M*} %{T} \
  174.         -undef -D__GNUC__ %{ansi: -$ -D__STRICT_ANSI__}\
  175.     %{!ansi:%p -Dunix -Dsprite}\
  176.         %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
  177.     %{Wcomment} %{Wtrigraphs} %{Wall}\
  178.         %i %{o*} %{M*:%{o*}}}\n";
  179.  
  180. static char default_c_string[] =
  181.      "%C %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} -m%m %{M*} %{T} \
  182.         -undef -D__GNUC__ %{ansi: -$ -D__STRICT_ANSI__}\
  183.     %{!ansi:%p -Dunix -Dsprite}\
  184.     %{msoft-float:-D__SOFT_FLOAT__}\
  185.         %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
  186.     %{Wcomment} %{Wtrigraphs} %{Wall}\
  187.         %i %{!M*:%{!E:%g.cpp}}%{E:%{o*}}%{M*:%{o*}}\n\
  188.      %{!M*:%{!E:%1 %g.cpp %{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
  189.     %{a} %{g} %{O} %{W*} %{w} %{pedantic} %{ansi} %{traditional}\
  190.     %{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  191.         %{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %g.s}\n\
  192.      %{!S:%a %{R} %{j} %{J} %{h} %{d2} %{gg:-G %g.sym}\
  193.     %g.s %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\n }}}";
  194.  
  195. static char default_cplusplus_string[] = 
  196.     "%C -+ %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} \
  197.        -I/sprite/lib/include/g++ -m%m %{M*} %{T} \
  198.        -undef -D__GNUC__ -D__GNUG__ -D__cplusplus %p -Dsprite %P\
  199.        %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
  200.        %{Wcomment*} %{Wtrigraphs} %{Wall}\
  201.        %i %{!M*:%{!E:%g.cpp}}%{E:%{o*}}%{M*:%{o*}}\n\
  202.      %{!M*:%{!E:%+ %g.cpp %{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
  203.     %{+e*} %{a} %{g} %{g0} %{O} %{W*} %{w} %{pedantic} %{traditional}\
  204.     %{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  205.         %{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %g.s}\n\
  206.      %{!S:%a %{R} %{j} %{J} %{h} %{d2} %{gg:-G %g.sym}\
  207.     %g.s %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\n }}}";
  208.  
  209. /*
  210.  * Spec information for individual machines:
  211.  */
  212.  
  213. static struct compiler default_compilers[] =
  214. {
  215.     {".c", default_c_string },
  216.     {".cc", default_cplusplus_string },
  217.     {".s", default_assembler_string },
  218.     /* Mark end of table. */
  219.     {0, 0}
  220. };
  221.  
  222. static struct compiler default_cplusplus[] =
  223. {
  224.     {".c", default_cplusplus_string },
  225.     {".cc", default_cplusplus_string },
  226.     {".s", default_assembler_string },
  227.     /* Mark end of table. */
  228.     {0, 0},
  229. };
  230.  
  231. #if 0
  232. static struct compiler sun3_compilers[] =
  233. {
  234.     {".c",
  235.      "%C %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} -m%m %{M*} %{T} \
  236.         -undef -D__GNUC__ %{ansi: -$ -D__STRICT_ANSI__}\
  237.     %{!ansi:%p -Dunix -Dsprite}\
  238.     %{!m68881:-D__SOFT_FLOAT__}\
  239.         %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
  240.     %{Wcomment} %{Wtrigraphs} %{Wall}\
  241.         %i %{!M*:%{!E:%g.cpp}}%{E:%{o*}}%{M*:%{o*}}\n\
  242.      %{!M*:%{!E:%1 %g.cpp %{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
  243.     %{a} %{g} %{O} %{W*} %{w} %{pedantic} %{ansi} %{traditional}\
  244.     %{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  245.     %{!m68881:-msoft-float}\
  246.         %{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %g.s}\n\
  247.      %{!S:%a %{R} %{j} %{J} %{h} %{d2} %{gg:-G %g.sym}\
  248.     %g.s %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\n }}}"},
  249.     {".s",
  250.      "%{!E:%{!S:%a %{R} %{j} %{J} %{h} %{d2}\
  251.     %i %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\n }}\
  252.       %{E:%C %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} -m%m %{M*} %{T} \
  253.         -undef -D__GNUC__ %{ansi: -$ -D__STRICT_ANSI__}\
  254.     %{!ansi:%p -Dunix -Dsprite}\
  255.         %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
  256.     %{Wcomment} %{Wtrigraphs} %{Wall}\
  257.         %i %{o*} %{M*:%{o*}}}\n"},
  258.     /* Mark end of table. */
  259.     {0, 0}
  260. };
  261. #endif
  262.  
  263. static char default_link_spec[] =
  264.     "%{!c:%{!M*:%{!E:%{!S:%l %{o*}\
  265.     %{A} %{d} %{e*} %{N} %{n} %{r} %{s} %{S} %{T*} %{t} %{u*} %{X} %{x} %{z}\
  266.     %{y*} %{!nostdlib:%S} %{L*} -L/sprite/lib/%m.md \
  267.     %o %{!nostdlib:%L}\n }}}}";
  268.  
  269.  
  270. static target_specs m68000_target =
  271. {
  272.     "sun2",                    /* name */
  273.     default_compilers,                /* base_specs */
  274.     default_cplusplus,                          /* c++ specs */
  275.     default_link_spec,                /* link_base_spec */
  276.     "-Dmc68000 -Dsun2",                /* cpp_predefines */
  277.     "cpp",                                      /* cpp_spec */
  278.     "cc1.68k -msoft-float -m68000",        /* cc1_spec */
  279.     "g++1.68k -m68000",                   /* cplus1_spec */
  280.     "as.sun3 -m68010",                /* asm_spec */
  281.     "ld.sun3 -X -m68010 %{!e:-e start}",    /* link_spec */
  282.     "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}",    /* lib_spec */
  283.     "",                        /* start_file_spec */
  284.     "%{funsigned-char: -D__CHAR_UNSIGNED__}",   /* signed_char_spec */
  285. };
  286.  
  287. static target_specs m68020_target =
  288. {
  289.     "sun3",                    /* name */
  290.     default_compilers,                /* base_specs */
  291.     default_cplusplus,                          /* c++ specs */
  292.     default_link_spec,                /* link_base_spec */
  293.     "-Dmc68000 -Dsun3",                /* cpp_predefines */
  294.     "cpp",                                      /* cpp_spec */
  295.     "cc1.68k -m68020",                          /* cc1_spec */
  296.     "g++1.68k -m68020",                          /* cplus1_spec */
  297.     "as.sun3 -m68020",                /* asm_spec */
  298.     "ld.sun3 -X %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  299.                         /* link_spec */    
  300.     "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}",    /* lib_spec */
  301.     "",                        /* start_file_spec */
  302.     "%{funsigned-char: -D__CHAR_UNSIGNED__}",   /* signed_char spec */
  303. };
  304.  
  305. static target_specs spur_target =
  306. {
  307.     "spur",                    /* name */
  308.     default_compilers,                /* base_specs */
  309.     default_cplusplus,                          /* c++ specs */
  310.     default_link_spec,                /* link_base_spec */
  311.     "-Dspur",                    /* cpp_predefines */
  312.     "cpp",                                      /* cpp_spec */
  313.     "cc1.spur -msoft-float",            /* cc1_spec */
  314.     "g++1.spur -msoft-float",                    /* cplus1_spec */
  315.     "sas",                    /* asm_spec */
  316.     "sld -X -p %{!e:-e start}",            /* link_spec */
  317.     "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}",    /* lib_spec */
  318.     "",                        /* start_file_spec */
  319.     "%{funsigned-char: -D__CHAR_UNSIGNED__}",   /* signed_char spec */
  320. };
  321.  
  322. static target_specs sparc_target =
  323. {
  324.     "sun4",                    /* name */
  325.     default_compilers,                /* base_specs */
  326.     default_cplusplus,                          /* c++ specs */
  327.     default_link_spec,                /* link_base_spec */
  328.     "-Dsparc -Dsun4",                /* cpp_predefines */
  329.     "cpp",                                      /* cpp_spec */
  330.     "cc1.sparc",                        /* cc1_spec */
  331.     "g++1.sparc",                                /* cplus1_spec */
  332.     "as.sun4",                         /* asm_spec */
  333.     "ld.sun4 -X %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  334.                         /* link_spec */
  335.     "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}",    /* lib_spec */
  336.     "",                        /* start_file_spec */
  337.     "%{funsigned-char: -D__CHAR_UNSIGNED__}",   /* signed_char spec */
  338. };
  339.  
  340.  
  341. static target_specs mips_target =
  342. {
  343.     "ds3100",                    /* name */
  344.     default_compilers,                /* base_specs */
  345.     default_cplusplus,                          /* c++ specs */
  346.     default_link_spec,                /* link_base_spec */
  347.     "-Dmips -Dds3100",                /* cpp_predefines */
  348.     "cpp",                                      /* cpp_spec */
  349.     "cc1.mips",                         /* cc1_spec */
  350.     "g++1.mips",                                 /* cplus1_spec */
  351. #if 0
  352.     "as.ds3100",                /* asm_spec */
  353.     "ld.ds3100 -X %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  354.                         /* link_spec */
  355. #else
  356.     /* 
  357.      *    For now we have to use the Ultrix assembler and linker.
  358.      *    These will fail on a sun.
  359.      */
  360. #ifdef ds3100
  361.     "/sprite/cmds.ds3100/as",
  362.     "/sprite/cmds.ds3100/ld -B1.31 /usr/lib/crt0.o1.31",
  363. #else
  364.     "echo YOU CANT ASSEMBLE FOR THE DS3100 ON THIS MACHINE",
  365.     "echo YOU CANT LINK FOR THE DS3100 ON THIS MACHINE",
  366. #endif
  367. #endif
  368.     "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}",    /* lib_spec */
  369.     "",                        /* start_file_spec */
  370.     "%{funsigned-char: -D__CHAR_UNSIGNED__}",   /* signed_char spec */
  371. };
  372.  
  373.  
  374. static target_specs symm_target =
  375. {
  376.     "symm",                    /* name */
  377.     default_compilers,                /* base_specs */
  378.     default_cplusplus,                          /* c++ specs */
  379.     default_link_spec,                /* link_base_spec */
  380.     "-Di386 -Dsymm -Dsequent",            /* cpp_predefines */
  381.     "cpp",                                      /* cpp_spec */
  382.     "cc1.symm",                            /* cc1_spec */
  383.     "g++1.symm",                                /* cplus1_spec */
  384.     "as.symm",                         /* asm_spec */
  385.     "ld.symm -Tdata 400000 %{!e:%{!pg:-e __start}%{pg:-e __gstart}}",
  386.                         /* link_spec */
  387.     "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}",    /* lib_spec */
  388.     "",                        /* start_file_spec */
  389.     "%{funsigned-char: -D__CHAR_UNSIGNED__}",   /* signed_char spec */
  390. };
  391.  
  392.  
  393. /*
  394.  * Top-level table used to look up information for a particular target
  395.  * machine.  The first entry will be used as the default target if
  396.  * a target isn't specified in a command-line switch or environment
  397.  * variable.
  398.  */
  399.  
  400. typedef struct
  401. {
  402.     char *name;            /* Name of target machine (as it
  403.                  * appears in "-m" switch. */
  404.     target_specs *info;        /* Information about target machine. */
  405. } target_machine;
  406.  
  407. static target_machine target_machines[] = {
  408.     {"sun3",    &m68020_target},
  409.     {"68000",    &m68000_target},
  410.     {"68010",    &m68000_target},
  411.     {"sun2",    &m68000_target},
  412.     {"68020",    &m68020_target},
  413.     {"spur",    &spur_target},
  414.     {"sun4",    &sparc_target},
  415.     {"sun4c",   &sparc_target},
  416.     {"sun4c2",  &sparc_target},
  417.     {"sparc",   &sparc_target},
  418.     {"ds3100",  &mips_target},
  419.     {"mips",    &mips_target},
  420.     {"sym",     &symm_target},
  421.     {"symm",    &symm_target},
  422.     {"sequent", &symm_target},
  423.     {"i386",    &symm_target},
  424.     {0, 0}                /* Zeroes mark end of list. */
  425. };
  426.  
  427. static char *target_name;        /* Name of selected target. */
  428. static target_specs *target;        /* Info for selected target. */
  429.  
  430. /*
  431.  *  Put temporary files in /tmp
  432.  */
  433. #define P_tmpdir    "/tmp"
  434.  
  435. #endif /* _SPECS */
  436.  
  437. @
  438.  
  439.  
  440. 1.17
  441. log
  442. @Added .cc extension for C++ programs.
  443. @
  444. text
  445. @d17 1
  446. a17 1
  447.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.16 90/11/05 07:06:04 rab Exp Locker: rab $ SPRITE (Berkeley)
  448. d308 1
  449. @
  450.  
  451.  
  452. 1.16
  453. log
  454. @Fixed floating point flag so that __SOFT_FLOAT__ is defined when -msoft-float
  455. is specifed, instead of when it isn't.
  456. @
  457. text
  458. @d17 1
  459. a17 1
  460.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.15 90/09/09 03:32:01 rab Exp Locker: rab $ SPRITE (Berkeley)
  461. d117 1
  462. @
  463.  
  464.  
  465. 1.15
  466. log
  467. @Added symmetry stuff.
  468. @
  469. text
  470. @d17 1
  471. a17 1
  472.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.14 90/06/28 15:31:15 rab Exp Locker: rab $ SPRITE (Berkeley)
  473. d76 1
  474. a76 1
  475.     %{!msoft-float:-D__SOFT_FLOAT__}\
  476. @
  477.  
  478.  
  479. 1.14
  480. log
  481. @Added support for g++.
  482. @
  483. text
  484. @d17 1
  485. a17 1
  486.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.13 90/04/09 08:45:24 rab Exp Locker: rab $ SPRITE (Berkeley)
  487. d264 20
  488. d299 1
  489. a299 1
  490.     {"sun3",    &m68020_target},    /* This is the default target. */
  491. d310 4
  492. @
  493.  
  494.  
  495. 1.13
  496. log
  497. @Added sun4c as a machine type.  It is a synonym for sun4.
  498. @
  499. text
  500. @d17 1
  501. a17 1
  502.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.12 90/02/06 21:38:50 rab Exp Locker: rab $ SPRITE (Berkeley)
  503. d48 1
  504. d54 1
  505. d62 9
  506. a70 3
  507. /*
  508.  * Spec information for individual machines:
  509.  */
  510. d72 1
  511. a72 3
  512. struct compiler default_compilers[] =
  513. {
  514.     {".c",
  515. d76 1
  516. d85 25
  517. a109 10
  518.     %g.s %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\n }}}"},
  519.     {".s",
  520.      "%{!E:%{!S:%a %{R} %{j} %{J} %{h} %{d2}\
  521.     %i %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\n }}\
  522.       %{E:%C %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} -m%m %{M*} %{T} \
  523.         -undef -D__GNUC__ %{ansi: -$ -D__STRICT_ANSI__}\
  524.     %{!ansi:%p -Dunix -Dsprite}\
  525.         %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
  526.     %{Wcomment} %{Wtrigraphs} %{Wall}\
  527.         %i %{o*} %{M*:%{o*}}}\n"},
  528. d114 10
  529. a123 1
  530. struct compiler sun3_compilers[] =
  531. d152 1
  532. d154 1
  533. a154 1
  534. char default_link_spec[] =
  535. d161 1
  536. a161 1
  537. target_specs m68000_target =
  538. d165 1
  539. d170 1
  540. d178 1
  541. a178 1
  542. target_specs m68020_target =
  543. d181 2
  544. a182 1
  545.     sun3_compilers,                /* base_specs */
  546. d187 1
  547. d196 1
  548. a196 1
  549. target_specs spur_target =
  550. d200 1
  551. d205 1
  552. d213 1
  553. a213 1
  554. target_specs sparc_target =
  555. d217 1
  556. d222 2
  557. a223 1
  558.     "as.sun4",                /* asm_spec */
  559. d232 1
  560. a232 1
  561. target_specs mips_target =
  562. d236 1
  563. d241 1
  564. d278 1
  565. a278 1
  566. target_machine target_machines[] = {
  567. d293 2
  568. a294 2
  569. char *target_name;            /* Name of selected target. */
  570. target_specs *target;            /* Info for selected target. */
  571. @
  572.  
  573.  
  574. 1.12
  575. log
  576. @Changes for new organization of compiler.  Backends are now in /sprite/lib/gcc.
  577. @
  578. text
  579. @d17 1
  580. a17 1
  581.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.11 90/01/12 09:40:36 rab Exp Locker: rab $ SPRITE (Berkeley)
  582. d244 1
  583. @
  584.  
  585.  
  586. 1.11
  587. log
  588. @Add ds3100 cross-compile stuff.
  589. @
  590. text
  591. @d17 1
  592. a17 1
  593.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.10 89/12/14 17:49:05 rab Exp Locker: rab $ SPRITE (Berkeley)
  594. d137 2
  595. a138 2
  596.     "as -m68010",                /* asm_spec */
  597.     "ld -X -msun2 %{!e:-e start}",        /* link_spec */
  598. d152 2
  599. a153 3
  600. #ifdef ds3100
  601.     "gas -m68020",                /* asm_spec */
  602.     "gld -X -msun3 %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  603. a154 5
  604. #else
  605.     "as -m68020",                /* asm_spec */
  606.     "ld -X -msun3 %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  607.                         /* link_spec */    
  608. #endif
  609. d183 2
  610. a184 7
  611. #ifdef ds3100
  612.     "gas -msparc",                /* asm_spec */
  613.     "gld -X -msun4 %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  614.                         /* link_spec */
  615. #else
  616.     "as -msparc",                /* asm_spec */
  617.     "ld -X -msun4 %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  618. a185 1
  619. #endif
  620. d201 2
  621. a202 2
  622.     "as -mmips",                /* asm_spec */
  623.     "ld -X -mmips %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  624. @
  625.  
  626.  
  627. 1.10
  628. log
  629. @*** empty log message ***
  630. @
  631. text
  632. @d17 1
  633. a17 1
  634.  * $Header: /sprite/src/cmds/cc/sprite/RCS/specs.h,v 1.9 89/10/25 21:33:16 rab Exp Locker: rab $ SPRITE (Berkeley)
  635. d152 5
  636. d158 3
  637. a160 2
  638.     "ld -X %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  639.                         /* link_spec */
  640. d189 5
  641. d197 1
  642. @
  643.  
  644.  
  645. 1.9
  646. log
  647. @Put temporary files in /tmp instead of /usr/tmp
  648. Delete -T flag to cpp (doesn't exist in 1.36).
  649. @
  650. text
  651. @d17 1
  652. a17 1
  653.  * $Header: /user2/rab/gcc/sprite/RCS/specs.h,v 1.8 89/10/23 21:23:53 rab Exp Locker: rab $ SPRITE (Berkeley)
  654. d70 28
  655. d105 1
  656. d147 1
  657. a147 1
  658.     default_compilers,                /* base_specs */
  659. d151 1
  660. a151 1
  661.     "cc1.68k -msoft-float -m68020",             /* cc1_spec */
  662. @
  663.  
  664.  
  665. 1.8
  666. log
  667. @Added preliminary support for ds3100.
  668. @
  669. text
  670. @d17 1
  671. a17 1
  672.  * $Header: /user2/rab/gcc/sprite/RCS/specs.h,v 1.7 89/10/13 10:24:11 rab Exp Locker: rab $ SPRITE (Berkeley)
  673. d68 1
  674. a68 1
  675.         -undef -D__GNUC__ %{ansi:-T -$ -D__STRICT_ANSI__}\
  676. d84 1
  677. a84 1
  678.         -undef -D__GNUC__ %{ansi:-T -$ -D__STRICT_ANSI__}\
  679. d223 5
  680. @
  681.  
  682.  
  683. 1.7
  684. log
  685. @made software floating point the default for the sun3.
  686. @
  687. text
  688. @d17 1
  689. a17 1
  690.  * $Header: /a/newcmds/cc/sprite/RCS/specs.h,v 1.6 89/07/19 10:50:38 ouster Exp Locker: rab $ SPRITE (Berkeley)
  691. d127 1
  692. a127 1
  693.     ""                        /* start_file_spec */
  694. d153 1
  695. a153 1
  696.     "cc1.sparc -msparc",                /* cc1_spec */
  697. d158 1
  698. a158 1
  699.     ""                        /* start_file_spec */
  700. d163 29
  701. d216 2
  702. @
  703.  
  704.  
  705. 1.6
  706. log
  707. @Specify -msun2 to linker for 68010's;  otherwise get 68020 binaries.
  708. @
  709. text
  710. @d17 1
  711. a17 1
  712.  * $Header: /a/newcmds/cc/sprite/RCS/specs.h,v 1.5 89/06/15 14:56:05 rab Exp Locker: rab $ SPRITE (Berkeley)
  713. d70 1
  714. d122 1
  715. a122 1
  716.     "cc1.68k -msoft-float -m68020",        /* cc1_spec */
  717. @
  718.  
  719.  
  720. 1.5
  721. log
  722. @*** empty log message ***
  723. @
  724. text
  725. @d17 1
  726. a17 1
  727.  * $Header: /a/newcmds/cc/sprite/RCS/specs.h,v 1.4 89/05/09 23:17:14 rab Exp Locker: rab $ SPRITE (Berkeley)
  728. d108 1
  729. a108 1
  730.     "ld -X %{!e:-e start}",            /* link_spec */
  731. @
  732.  
  733.  
  734. 1.4
  735. log
  736. @Changed default_compilers string so -E flag works correctly
  737. with assembly files.
  738. @
  739. text
  740. @d17 1
  741. a17 1
  742.  * $Header: /a/newcmds/cc/sprite/RCS/specs.h,v 1.3 89/05/09 21:30:11 rab Exp Locker: rab $ SPRITE (Berkeley)
  743. d154 1
  744. a154 1
  745.     "ld -X %{!e:%{!pg:-e start}%{pg:-e gstart}}",
  746. @
  747.  
  748.  
  749. 1.3
  750. log
  751. @added sun4 stuff
  752. @
  753. text
  754. @d17 1
  755. a17 1
  756.  * $Header: /a/newcmds/cc/sprite/RCS/specs.h,v 1.2 89/03/12 21:02:38 rab Exp $ SPRITE (Berkeley)
  757. d80 8
  758. a87 2
  759.      "%{!S:%a %{R} %{j} %{J} %{h} %{d2}\
  760.     %i %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\n }"},
  761. @
  762.  
  763.  
  764. 1.2
  765. log
  766. @*** empty log message ***
  767. @
  768. text
  769. @d17 1
  770. a17 1
  771.  * $Header: /a/newcmds/cc/sprite/RCS/specs.h,v 1.14 89/02/22 17:42:38 rab Exp $ SPRITE (Berkeley)
  772. d139 18
  773. d178 2
  774. @
  775.  
  776.  
  777. 1.1
  778. log
  779. @Initial revision
  780. @
  781. text
  782. @d51 2
  783. a52 1
  784.     char *compile_spec;            /* Spec to substitute for %C. */
  785. d57 1
  786. d67 1
  787. a67 1
  788.      "cpp %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} -m%m %{M*} %{T} \
  789. d73 2
  790. a74 2
  791.      %{!M*:%{!E:%C %g.cpp %{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
  792.     %{g} %{O} %{W*} %{w} %{pedantic} %{ansi} %{traditional}\
  793. d98 3
  794. a100 3
  795.     "-Dmc68000 -Dsun2 %{funsigned-char: -D__CHAR_UNSIGNED__}",
  796.                         /* cpp_predefines */
  797.     "cc1.68k -msoft-float -m68000",        /* compile_spec */
  798. d102 1
  799. a102 2
  800.     "ld -X %{!e:-e start}",
  801.                         /* link_spec */
  802. d104 2
  803. a105 1
  804.     ""                        /* start_file_spec */
  805. d113 3
  806. a115 3
  807.     "-Dmc68000 -Dsun3 %{funsigned-char: -D__CHAR_UNSIGNED__}",
  808.                         /* cpp_predefines */
  809.     "cc1.68k -msoft-float -m68020",        /* compile_spec */
  810. d121 1
  811. d129 3
  812. a131 3
  813.     "-Dspur %{funsigned-char: -D__CHAR_UNSIGNED__}",
  814.                         /* cpp_predefines */
  815.     "cc1.spur -msoft-float",            /* compile_spec */
  816. d135 2
  817. a136 1
  818.     ""                        /* start_file_spec */
  819. d166 2
  820. a167 1
  821. #endif _SPECS
  822. @
  823.